<script lang="jsx">
import Header from './header.vue';
import Footer from './footer.vue';

export default {
  setup() {
    const imgSrc = new URL('@/assets/vue.svg', import.meta.url).href;
    const clickHandler = () => {
      console.log('--clickHandler--');
    };
    const leftJsx = <img src={imgSrc} onClick={clickHandler} />;

    return () => (
      <>
        <Header left={leftJsx} />

        <div>main</div>

        <Footer />
      </>
    );
  },
};
</script>

<style scoped></style>
